package hibernate.administratorAccount;

public class Interval {
	
	private static Interval monthly=new Interval("MONTHLY");
	private static Interval yearly=new Interval("YEARLY");
	private static Interval weekly=new Interval("WEEKLY");
	private static Interval daily=new Interval("DAILY");
	
	private String name;
	
	private Interval(String name){
		this.name=name;
	}
	
	public String toString(){
		return name;
	}
	
	public static Interval getMonthly(){return monthly;}
	public static Interval getYearly(){return yearly;}
	public static Interval getWeekly(){return weekly;}
	public static Interval getDaily(){return daily;}
	
}
